import request from '../utils/request'

export function fetchList(params: any) {
  return request({
    url: '/scene/v1/list',
    method: 'get',
    params: params
  })
}

export function createScene(data: any) {
  return request({
    url: '/scene/v1/save',
    method: 'post',
    data: data
  })
}

export function deleteScene(id: number) {
  return request({
    url: `/scene/v1/delete/${id}`,
    method: 'delete'
  })
}

export function updateScene(data: any) {
  return request({
    url: '/scene/v1/update',
    method: 'post',
    data: data
  })
}
